<!--
- @founder   IT柏拉图, https: //weibo.com/itprato
- @author    DedeCMS团队
- @copyright Copyright (c) 2007 - 2021, 上海卓卓网络科技有限公司 (DesDev, Inc.)
--->

<html>
<head>
<meta charset="{dede:global.cfg_soft_lang/}" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>发布新图集</title>
<meta name="copyright" content="2007-2021 DedeCMS, 上海卓卓网络科技有限公司 (DesDev, Inc.)" />
<link rel="icon" href="/favicon.ico" />
<!-- CSS FILES -->
<!-- SYSCODE: 1V33343D362X2V2W38W5E‌4PW1E1C1C1J191E1C1E1CW1W2T2S2T1V252B1A -->
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_assets_dir/}/pkg/uikit/css/uikit.min.css" />
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_assets_dir/}/css/manage.dede.css">
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_assets_dir/}/pkg/jquery/jquery.simplecolorpicker.css">
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_assets_dir/}/pkg/croppie/croppie.css">
<style type="text/css">
.uk-table td{
padding: 6px 12px;
vertical-align: top;
height: 35px;
}
.uk-card-default{
background: none;
}
#dede-modal-card-header .uk-card-header{
height:25px;
}
</style>
</head>
<body>
<!-- 列表头部 -->
<div id="Table_Header_202X2W2X1X292F" class="uk-card uk-card-small uk-card-default" uk-sticky="bottom: #offset">
<div id="Header_1W2T2S2T1V252B" class="uk-card-header">
<div class="uk-grid uk-grid-small uk-text-small">
<span><ul class="uk-breadcrumb"><li><a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives"><span>文章列表</span></a></li><li>发布新图片集</li></ul></span>
</div>
</div>
</div>
<!-- /列表头部 -->
<!-- 列表主体 -->
<div class="uk-card uk-card-small uk-card-default" style="top:-20px;margin-bottom: 50px;">
<div class="uk-card-body uk-overflow-auto" grid>
<div class="uk-child-width-1-1 uk-padding">
<form name="form1" action="album_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmitAlb();">
<input type="hidden" name="channelid" value="<?php echo $channelid?>" />
<input type="hidden" name="cid" value="<?php echo $cid; ?>" />
<input type="hidden" name="imagebody" value="" />
<input type="hidden" name="dopost" value="save" />
<input name="maxwidth" type="hidden" id="maxwidth" size="10" value="<?php echo $cfg_album_width; ?>" />
<input type="hidden" id="litpic_b64" name="litpic_b64" value="">
<input type="hidden" id="albums" name="albums" value="">
<ul class="uk-tab" uk-tab>
<li><a href="#">常规参数</a></li>
<li><a href="#" >图集图片</a></li>
</ul>
<ul class="uk-switcher uk-margin">
<!-- 常规参数 -->
<li>
<table width="100%" border="0" uk-table>
<tr>
<td style="vertical-align:top;" width="200px">
<!-- 缩略图 -->
<div uk-form-custom style="border: 1px solid rgb(187, 187, 187);width: 188px;">
<input type="file" id="upload-image" name="files[]" accept="image/*">
<img id="result-image" />
<div id="no_image" class="uk-flex uk-flex-center uk-flex-middle">
<span uk-icon="icon: image; ratio: 4"></span>
</div>
</div>
<!-- /缩略图 -->
</td>
<td style="vertical-align:top;">
<table border="0" cellspacing="0" cellpadding="0" class="uk-table">
<tr>
<td width="90" style="vertical-align:middle;">文章标题：</td>
<td width='408'><input name="title" type="text" id="title" class="uk-input uk-form-width-large uk-form-small"/></td>
<td width="60" style="vertical-align:middle;">简略标题：</td>
<td><input name="shorttitle" type="text" id="shorttitle" class="uk-input uk-form-width-small uk-form-small" /></td>
</tr>
<tr >
<td width="90" style="vertical-align:middle;">自定义属性：</td>
<td colspan="2" style="vertical-align:middle;">
<?php
$dsql->SetQuery("Select * From `#@__arcatt` order by sortid asc");
$dsql->Execute();
while($trow = $dsql->GetObject()) {
if($trow->att=='j')
echo "<input class='uk-checkbox' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='showUrl()'> {$trow->attname}[{$trow->att}] &nbsp;&nbsp;";
else
echo "<input class='uk-checkbox' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}] &nbsp;&nbsp;";
}?>
</td>
</tr>
<tr id="redirecturltr" class="uk-hidden">
<td width="90">跳转网址：</td>
<td width="240">
<input name="redirecturl" type="text" id="redirecturl" value="" class="uk-input uk-form-width-large uk-form-small" />
</td>
<tr>
<tr>
<td width="90">TAG标签：</td>
<td><input name="tags" type="text" id="tags" value="" onChange="$Obj('keywords').value=this.value;" class="uk-input uk-form-width-large uk-form-small"/></td>
<td width="47">权重：</td>
<td><input name="weight" type="text" id="weight" value="<?php echo $maxWright['cc'];?>" class="uk-input uk-form-width-small uk-form-small" /> (越小越靠前)</td>
</tr>
<tr>
<td width="90">来源：</td>
<td width="240">
<input name="source" type="text" id="source" value="<?php echo $source; ?>" class="uk-input uk-form-width-large uk-form-small" />
</td>
<td width="90">作者：</td>
<td>
<input name="writer" type="text" id="writer" value="<?php echo $writer; ?>" class="uk-input uk-form-width-small uk-form-small"/>
</td>
</tr>
<tr colspan="2">
<td width="90" style="vertical-align:middle;">主分类：</td>
<td>
<?php
$typeOptions = GetOptionList($cid,$cuserLogin->getUserChannel(),$channelid);
echo "<select name='typeid' id='typeid' class='uk-select uk-form-width-large uk-form-small'>\r\n";
echo "<option value='0'>请选择栏目...</option>\r\n";
echo $typeOptions;
echo "</select>";
?>
</td>
</tr>
<tr colspan="3">
<td width="90" style="vertical-align:middle;">关键字：</td>
<td width="500"><input type='text' name="keywords" id="keywords" class="uk-input uk-form-width-large uk-form-small" /></td>
<td colspan="2" width="202" style="vertical-align:middle;"><input name="autokey" type="checkbox" class="uk-checkbox" id="autokey" value="1" <?php if($cfg_arc_autokeyword=='Y' ) echo ' checked="1" ' ; ?>/> 自动获取，手动填写用 "," 分开。</td>
</tr>
<tr colspan="2">
<td width="90">图集内容摘要：</td>
<td><textarea name="description" rows="5" id="description" class="uk-textarea uk-form-width-large uk-form-small"></textarea></td>
</tr>
<tr>
<td width="90" style="vertical-align:middle;">文章排序：</td>
<td width="240">
<select name="sortup" id="sortup" class="uk-select uk-form-width-large uk-form-small">
<option value="0" selected>默认排序</option>
<option value="7">置顶一周</option>
<option value="30">置顶一个月</option>
<option value="90">置顶三个月</option>
<option value="180">置顶半年</option>
<option value="360">置顶一年</option>
</select>
</td>
<td width="90" style="vertical-align:middle;">标题颜色：</td>
<td style="vertical-align:middle;">
<select id="colorpicker" name="color">
<option value="">#e1e1e1</option>
<?php foreach ($colors as $color): ?>
<option value="<?=$color?>" ><?=$color?></option>
<?php endforeach; ?>
</select>
</td>
</tr>
<tr>
<td width="90" style="vertical-align:middle;">阅读权限：</td>
<td width="240"> <select name="arcrank" id="arcrank" class="uk-select uk-form-width-large uk-form-small">
<?php
$urank = $cuserLogin->getUserRank();
$dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank'");
$dsql->Execute();
while($row = $dsql->GetObject())
{
echo "<option value='".$row->rank."'>".$row->membername."</option>\r\n";
}
?>
</select> </td>
<td width="90" style="vertical-align:middle;">消费金币：</td>
<td>
<input name="money" type="text" id="money" value="0" class="uk-input uk-form-width-small uk-form-small"/>
</td>
</tr>
<tr>
<td width="90" style="vertical-align:middle;">发布时间：</td>
<td>
<div class="uk-inline">
<span class="uk-form-icon uk-icon" uk-icon="icon: calendar4-week"></span>
<input class="uk-input uk-form-width-large uk-form-small" name="pubdate" type="datetime-local" value="<?=GetDateTimeMk(time())?>" placeholder="<?=GetDateTimeMk(time())?>">
</div>
</td>
<td width="90" style="vertical-align:middle;">浏览次数：</td>
<td>
<input type='text' name='click' value='<?php echo ($cfg_arc_click==' -1' ? mt_rand(50, 200) : $cfg_arc_click); ?>' class=" uk-input uk-form-width-small uk-form-small" />
</td>
</tr>
<tr>
<td width="90" style="vertical-align:middle;">自定义文件名：</td>
<td colspan="3"><input type="text" name="filename" id="filename" class="uk-input uk-form-width-medium uk-form-small" />（不包括后缀名如.html等）</td>
</tr>
</table>
</td>
</tr>
<tr >
<td colspan="2"><?php GetEditor("body", $body, 450); ?></td>
</tr>
<tr >
<td colspan="2">
<table border="0" cellspacing="0" cellpadding="0" class="uk-table">
<tr>
<td width="90px">评论选项：</td>
<td>
<input type='radio' name='notpost' class="uk-radio" value='0' <?php if($cfg_feedback_forbid=='N' ) echo "checked='1' " ; ?> /> 允许评论 &nbsp;&nbsp;&nbsp;&nbsp;
<input type='radio' name='notpost' class="uk-radio" value='1' <?php if($cfg_feedback_forbid=='Y' ) echo "checked='1' " ; ?> /> 禁止评论
</td>
</tr>
<tr>
<td width="90px">发布选项：</td>
<td ><input name="ishtml" type="radio" class="uk-radio" value="1" checked="1" />
生成HTML &nbsp;&nbsp;
<input type="radio" name="ishtml" class="uk-radio" value="0" />
仅动态浏览
</td>
</tr>
</table>
</td>
</tr>
</table>
</li>
<!-- /常规参数 -->
<!-- 专题文档 -->
<li>
<table border="0" cellspacing="0" cellpadding="0" class="uk-table">
<tr>
<td width="90" >表现方式：</td>
<td width='408'>
<label style="vertical-align:middle;"><input name="pagestyle" class="uk-radio" type="radio" value="1" <?php if($cfg_album_style==1) echo " checked='checked'" ; ?> />&nbsp;&nbsp;<span uk-icon="icon: 202X2W2X1X292F"></span> 单页多图</label>
&nbsp;&nbsp;
<label style="vertical-align:middle;"><input name="pagestyle" class="uk-radio" type="radio" value="2" <?php if($cfg_album_style==2) echo " checked='checked'" ; ?> />&nbsp;&nbsp;<span uk-icon="icon: 1W2T2S2T1V252B"></span> 一页一图</label>
</td>
</tr>
<tr>
<td width="90" >上传方式：</td>
<td width='408'>
<input name="isrm" type="hidden" id="isrm" value="1" />
<input name="byhand" class="uk-checkbox" type="checkbox" id="byhand" value="1" disabled="ture" checked />
手工上传
</td>
</tr>
<tr>
<td width="90" >图集内容：</td>
<td width='408'>
<div uk-form-custom onclick="_DedeCMS_JSCODE_Version_Select_Local_Images()">
<input type="file" id="Dede_Local_File_Images" accept="image/*" multiple >
<div class="uk-flex uk-flex-center uk-flex-middle">
<span uk-icon="icon: hdd"></span>&nbsp;&nbsp;选择本地图片
</div>
</div>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<!-- <div uk-form-custom>
<div class="uk-flex uk-flex-center uk-flex-middle" onclick="_DedeCMS_JSCODE_Version_Open_Windows_Get_Album()">
<span uk-icon="icon: cloud"></span>&nbsp;&nbsp;选择已上传图片
</div>
</div>
</td> -->
<td width="60" style="vertical-align:middle;"></td>
<td></td>
</tr>
<tr>
<td width="90" ></td>
<td colspan="3" style='min-width:860px'>
<ul id="Dede_Atlas_Upload" class="uk-grid-small uk-child-width-1-6" uk-grid uk-sortable="handle: .uk-sortable-handle" >
</ul>
</td>
</tr>
</table>
</li>
</ul>
</div>
</div>
<div class="uk-card-footer " >
<div class="uk-padding-small" >
<button type="submit" class="uk-button uk-button-small uk-button-primary">提交</button>
</div>
</div>
</div>
</form>
<!-- 底部 -->
<div class="bar-bottom uk-flex uk-light uk-flex-right">
<div class="uk-button-group" style="margin-left: 50px;">
</div>
<div class="e1e02">Copyright &copy; 2007-2021 <a href='http://www.dedecms.com' target='_blank'><u>DedeCMS</u></a>, 上海卓卓网络科技有限公司 (DesDev, Inc.)</div>
</div>
<!-- /底部 -->
<!-- 图片剪切 -->
<div id="modal-upload-image" uk-modal>
<div class="uk-modal-dialog">
<div id="dede-modal-card-header" class="uk-card uk-card-default" >
<button class="uk-modal-close-default" type="button" uk-close></button>
<div class="uk-card-header">
<span style="margin-top:4px;">图片剪切</span>
</div>
<div class="uk-card-body" style="background-color:#242A2F;" >
<div id="image-crop"></div>
</div>
<div class="uk-card-footer" style="display: flex;justify-content: space-between;">
<div>
<button class="upload-3-4 uk-button uk-button-default uk-button-small">封面</button>
<button class="upload-1-1 uk-button uk-button-default uk-button-small">头像</button>
<button class="upload-512-120 uk-button uk-button-default uk-button-small">幻灯</button>
<button class="upload-4-3 uk-button uk-button-default uk-button-small">4:3</button>
<button class="upload-16-9 uk-button uk-button-default uk-button-small">16:9</button>
</div>
<div>
<button class="upload-result-original uk-button uk-button-primary uk-button-small">幻灯剪切</button>
<button class="upload-result-viewport uk-button uk-button-primary uk-button-small">剪切</button>
</div>
</div>
</div>
</div>
</div>
<!-- /图片剪切 -->
<!-- 列表 -->
<div id="modal-archives" class="uk-modal-container" uk-modal>
<div class="uk-modal-dialog" style="width: 750px;">
<div id="dede-modal-card-header" class="uk-card uk-card-default" style="width: 750px;">
<button class="uk-modal-close-default" type="button" uk-close></button>
<div class="uk-card-header">
<span style="margin-top:4px;">选择图片</span>
</div>
<div class="uk-card-body" style="background-color:#242A2F;" style="width: 750px;">
<iframe id="archives" width="750px" height="450px"></iframe>
</div>
</div>
</div>
</div>
</div>
<!-- /列表 -->
<!-- JS FILES -->
<script src="{dede:global.cfg_assets_dir/}/pkg/uikit/js/uikit.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/pkg/uikit/js/uikit-icons.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/pkg/jquery/jquery.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/pkg/jquery/jquery.simplecolorpicker.js"></script>
<script src="{dede:global.cfg_assets_dir/}/pkg/croppie/croppie.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/js/dede.manage.min.js"></script>
<script language="javascript">
var albums =[] ;
$(document).ready(function() {
$('#colorpicker').simplecolorpicker({picker: true, theme: 'glyphicons'});
});
</script>
<!-- / JS FILES -->
</body>
</html>
